﻿using Swimj.CommonLib.Attributes;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace Admin.CommonLib.Models.User
{
    public class UserEditRequestDto
    {
        [Required]
        [NotNull]
        [TextFieldColumn(DisplayText = nameof(UserName))]
        public string? UserName { get; set; }

        public string? Password { get; set; }

        [TextFieldColumn(DisplayText = nameof(UserName))]
        public string? RealName { get; set; }

        [TextFieldColumn(DisplayText = nameof(UserName))]
        public string? Email { get; set; }

        [TextFieldColumn(DisplayText = nameof(UserName))]
        public string? Phone { get; set; }

        public DateTime? Birthday { get; set; }

        public string? Sex { get; set; }

        public string? Description { get; set; }

        public UserStateEnum DataState { get; set; } = UserStateEnum.Enabled;

        public string? Avatar { get; set; }

    }
}